<%@page import="cn.school.service.GradeService,java.util.*,cn.school.entity.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%@include file="checkLogin.jsp" %>
	<form action="addNewSub.jsp" method="post">
		<p>年级
			<%
			GradeService s=new GradeService();
			List<Grade> list=s.findALL();
			
			%>
			<select name="gradeid">
				<%
				 for(Grade g:list){
				%>
				<option value="<%=g.getId()%>"><%=g.getGname() %></option>
				<%} %>
			</select>
			<!-- <input type="number" name="gradeid"> -->
		</p>
		<p>
			课时<input type="number" name="classhour">
		</p>
		<p>
			科目名称<input type="text" name="subname">
		</p>
		<p>
			<input type="submit" value="提交">
		</p>
	</form>
</body>
</html>